<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:sf="http://www.springframework.org/tags/faces"
	  			xmlns:t="http://myfaces.apache.org/tomahawk"
				template="/WEB-INF/layouts/standardLayout.xhtml">

<ui:define name="content">
		<div id="importexport" class="section">
		    <span class="errors">
		       <h:messages errorClass="errors" globalOnly="true" />
		    </span>
			<h2>
				<h:outputText value="#{msg.importExport}"/>
			</h2>
			<h:form id="importExportForm" enctype="multipart/form-data">			    	    
				<fieldset>
					<div class="field">
						<t:inputFileUpload id="ifuFile" value="#{fileUploadBean.file}" storage="file" styleClass="fileUploadInput" required="true" immediate="true"/>
					</div>
					<div class="buttonGroup">
						<t:commandButton id="cbImportJSF" value="#{msg.importExport_importButton}" action="uploadXML" actionListener="#{fileUploadBean.upload}" />
					</div>
				</fieldset>
				<fieldset>
					<div class="field">
						<h:panelGrid>
							<sf:commandButton id="cbExportXML" value="#{msg.importExport_exportXML}" processIds="cbExportXML" action="exportXML" immediate="true" ajaxEnabled="false" />
							<sf:commandButton id="cbExportSQL" value="#{msg.importExport_exportSQL}" processIds="cbExportSQL" action="exportSQL" immediate="true" ajaxEnabled="false" />
							<sf:commandButton id="cbExportDoc" value="#{msg.importExport_exportDoc}" processIds="cbExportDoc" action="exportDoc" immediate="true" ajaxEnabled="false" />
						</h:panelGrid>
					</div>
				</fieldset>

				<div class="buttonGroup">
					<sf:commandButton id="cbBack" value="#{msg.general_backButton}" processIds="columnsForm" action="back" />
					<sf:commandButton id="cbEdit" value="#{msg.connection_editButton}" processIds="mainForm" action="edit" />
				</div>
						
			</h:form>
		</div>
</ui:define>
</ui:composition>